import { http } from '@/utils/http'

let FixApi = ''
if (process.env.NODE_ENV == 'development') {
  FixApi = '/web' //开发环境
} else {
  FixApi = '/web' //生产环境
}

// 竞品提报查询
export const queryClCompetitorPage = (data : any) => {
  return http({
    method: 'POST',
    url: `${FixApi}/cl/competitor/queryClCompetitorPage.json`,
    data,
  })
}

// 竞品提报详情查询
export const getClCompetitor = (data : any) => {
  return http({
    method: 'POST',
    url: `${FixApi}/cl/competitor/getClCompetitor.json`,
    data,
  })
}

// 竞品提报保存
export const saveClCompetitor = (data : any) => {
  return http({
    method: 'POST',
    url: `${FixApi}/cl/competitor/saveClCompetitor.json`,
    data,
  })
}
